#!/bin/bash
#!/bin/bash
# 获取脚本所在的目录路径
SHELL_DIR=$(dirname "$0")
# 导入配置 编译依赖 脚本
source $SHELL_DIR/build-function.sh
# 安装 git 工具
if ! command -v git >/dev/null 2>&1; then
    echo "git 未安装正在尝试安装"
    apt-get update
    apt-get install -y git
fi
cd /tmp
# 拉取代码
rm -rf tv ffmpeg-cpp-lib
git clone -b ffmpeg-cpp-lib https://gitcode.com/heqiao_linux/cpp_ffmpeg.git ffmpeg-cpp-lib
cd ffmpeg-cpp-lib
chmod +x *.sh
./build.sh
cd ..
git clone https://gitcode.com/vieo/videoServices.git tv
# git clone git@gitcode.com:vieo/videoServices.git tv
cd tv

#gradle_repo
#JetBrains

# 启动项目
# gradle bootRun
gradle bootJar

























